package com.Linngdu664.drglaserpointer.misc;

import net.minecraft.resources.ResourceLocation;
import net.minecraft.sounds.SoundEvent;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;

public class SoundRegister {
    public static final DeferredRegister<SoundEvent> SOUNDS = DeferredRegister.create(ForgeRegistries.SOUND_EVENTS, "drglaserpointer");
    public static final RegistryObject<SoundEvent> LASER_MARKER = build("laser_maker");
    public static final RegistryObject<SoundEvent> LASER_ON = build("laser_on");
    public static final RegistryObject<SoundEvent> LASER_OFF = build("laser_off");
    private static RegistryObject<SoundEvent> build(String id) {
        return SOUNDS.register(id, () -> new SoundEvent(new ResourceLocation("drglaserpointer", id)));
    }
}
